﻿<UserControl x:Class="ToolkitTestApp.MainView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:pstui="clr-namespace:PowersourceUIToolkit;assembly=PowersourceUIToolkit"
              xmlns:ui="http://www.caliburnproject.org"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             >

    <Grid ui:Bind.AtDesignTime="False">

        <StackPanel Orientation="Vertical">
            <TextBlock Name="Title"/>
            <TextBlock Name="TitleInternal"/>
            <TextBox Name="tx_TitleInternal" Text="{Binding TitleInternal, Mode=TwoWay}"/>
            <TextBox Name="txTitle" Text="{Binding Title,Mode=TwoWay}"/>
            <TextBlock Name="tbTitle" Text="{Binding Title}"/>
            <TextBlock Name="tb_Title_1" Text="{Binding Title}"/>
            <TextBlock  Name="tb_Title_2" Text="{Binding Title}"/>
            <Button Name="ChangeInternalString">Change internal</Button>
            <Button Name="AddOne">Add item</Button>
            <Button Name="AddOneSelected" Click="AddOneSelected_Click_1">Add item to selected items via list</Button>
            <Button Name="ChangeOneIsSelected" Click="ChangeOneIsSelected_Click_1">change 1 IsSelected </Button>
            <Button Name="ChangeAllIsSelected" Click="ChangeAllIsSelected_Click_1">change all IsSelected</Button>
            <ListBox Name="lbTestSelected" ItemsSource="{Binding AvailableTeams}" SelectionMode="Multiple"
                     pstui:HierarchicallySynchronizedLists.SynchronizedSelectedItems="{Binding AvailableTeams}">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding Label}"/>
                    </DataTemplate>
                </ListBox.ItemTemplate>

            </ListBox>


        </StackPanel>
    </Grid>
</UserControl>
